//
//  ZTMapViewController.h
//  DianYing5
//
//  Created by uskr on 15/7/17.
//  Copyright (c) 2015年 uskr. All rights reserved.
//

#import <UIKit/UIKit.h>

#import <MAMapKit/MAMapKit.h>

#import "CLLocation+Sino.h"

#import <CoreLocation/CoreLocation.h>

#import <AMapSearchKit/AMapSearchAPI.h>

@interface ZTMapView : MAMapView

//@property (nonatomic,strong)AMapSearchAPI* search;

@property (nonatomic,strong)CLLocationManager *locationManager;

@property (nonatomic,strong)AMapSearchAPI* search;

//void mapViewAndLocationManager(MAMapView* mapView, CLLocationManager* mapView);
#pragma mark 设置地图属性
//!@brief 自定义BLOCK,设置地图属性,在CLLocationManager创建完成,调用之前调用此BLOCK
@property (nonatomic,copy)void (^mapViewAndLocationManager)(MAMapView* mapView, CLLocationManager* locationManager);

-(void)setMapViewAndLocationManager:(void (^)(MAMapView *mapView, CLLocationManager *locationManager))mapViewAndLocationManager;

//void locationManagerAndStatus(CLLocationManager* manager, CLAuthorizationStatus status);
@property (nonatomic,copy)void (^locationManagerAndStatus)(CLLocationManager* manager, CLAuthorizationStatus status);

 //!@brief 自定义BLOCK,设置定位信息,在授权发生改变后调用
-(void)setLocationManagerAndStatus:(void (^)(CLLocationManager *manager, CLAuthorizationStatus status))locationManagerAndStatus;

-(UIView*)initWithFrame:(CGRect)rect withCenterLatitude:(CGFloat)latitude withCenterlongitude:(CGFloat)longitude;
@end
